package com.gitee.smalllog.core;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MarkerFactory;
import org.slf4j.helpers.BasicMarker;

public class SmallLogger {

    private static final Logger log = LoggerFactory.getLogger(SmallLogger.class);

    public static void info(String title,String var,Object var2){
        BasicMarker marker = (BasicMarker) MarkerFactory.getMarker(title);
        log.info(marker,var,var2);
    }

    public static void warn(String title,String var,Object var2){
        BasicMarker marker = (BasicMarker) MarkerFactory.getMarker(title);
        log.warn(marker,var,var2);
    }

    public static void error(String title,String var,Object var2){
        BasicMarker marker = (BasicMarker) MarkerFactory.getMarker(title);
        log.error(marker,var,var2);
    }

    public static void debug(String title,String var,Object var2){
        BasicMarker marker = (BasicMarker) MarkerFactory.getMarker(title);
        log.debug(marker,var,var2);
    }
}
